// 注册模块别名
require('module-alias/register');

const express = require("express");
const path = require("path");
var routers = require("./router/index");
var apiRouters = require("./router/api");

const engine = require('./liquid/index')
const app = express();



app.engine("liquid", engine.express()); // register liquid engine
app.set("views", ["./admin/app/view"]); // specify the views directory
app.set("view engine", "liquid"); // set to default

app.use('/static',express.static(path.join(__dirname, "./static")));

app.use("/", routers);
app.use("/api", apiRouters);

app.listen(2081, function () {});
